import axios from "axios";
// 添加请求拦截器

const service = axios.create({
    baseURL: 'https://huitengit.com:8011/',
    timeout: 5000
});

//添加响应拦截器
service.interceptors.response.use(function (response) {
    if (response) {
        return response;
    } else {
        return Promise.reject(response);
    }
}, function (error) {
    return Promise.reject(error);
});
export default service;